{% extends "adminbase.html" %}

{% block main_title %}<h1>Check Reported Reviews</h1>{% endblock %}

{% block main_subtitle %}{% endblock %}

{% block main_content %}
{% if success_message %}
					<b>{{ success_message }}</b><br/><br/>
				{% endif %}
				
				{% if reported %}
					{% for review in reported %}
						<form method="post" action="/admins/modifyReportedReviews/{{ review.id }}/">{% csrf_token %}
							By: {{ review.reviewer }} - About: {{ review.reviewee }} - Reports: {{ review.report_count }}<br/><br/> 
							<b>Content</b>: {{ review.content }}<br/><br/>
	  						
	  						Action:   
									<input type="radio" name="action" value="keep" checked="checked" /> Keep
	  								<input type="radio" name="action" value="delete" /> <font class='del'> Delete </font> <br /><br/>
	  						Reason (incase of delete):<br/><br/>
	  						<input type="radio" name="reason_choice" value="Inappropriate/Offensive comment" checked="True" />Inappropriate/Offensive comment<br/>
	  						<input type="radio" name="reason_choice" value="Not a review" />Not a review<br/>
	  						<input type="radio" name="reason_choice" value="Advertisement" />Advertisement<br/>
	  						<input type="radio" name="reason_choice" value="other" />Other (you can mention below)<br/>
	  						<textarea name="reason_text" size=80 style="height:100px;"></textarea>
							<input id="search_btn" type="submit" name="submit" value="Submit" /> <br/><br/>
						</form>
						<hr />
					{% endfor %}
				{% else %}
					There are no reported reviews
				{% endif %}				
{% endblock %}
